import request from '@/utils/request'

// 查询门诊结账记录明细列表 (分页)
export function selectPageOutpAcctDetail(query) {
    return request({
        url: '/business/outpAcctDetail/selectPage',
        method: 'get',
        params: query
    })
}

// 查询门诊结账记录明细列表 (不分页)
export function listOutpAcctDetail(query) {
    return request({
        url: '/business/outpAcctDetail/list',
        method: 'get',
        params: query
    })
}

// 查询门诊结账记录明细详细
export function getOutpAcctDetail(outpAcctDetailId) {
    return request({
        url: '/business/outpAcctDetail/' + outpAcctDetailId,
        method: 'get'
    })
}

// 新增门诊结账记录明细
export function addOutpAcctDetail(data) {
    return request({
        url: '/business/outpAcctDetail',
        method: 'post',
        data: data
    })
}

// 修改门诊结账记录明细
export function updateOutpAcctDetail(data) {
    return request({
        url: '/business/outpAcctDetail',
        method: 'put',
        data: data
    })
}

// 删除门诊结账记录明细
export function delOutpAcctDetail(outpAcctDetailId) {
    return request({
        url: '/business/outpAcctDetail/' + outpAcctDetailId,
        method: 'delete'
    })
}
